import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    component: Index
  },
  {
    path: '/about',
    name: 'about',
      component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/detail',
    name: 'detail',
      component: () => import(/* webpackChunkName: "about" */ '../views/Detail.vue')
  },
  // {
  //   path: '/index',
  //   name: 'index',
  //     component: () => import(/* webpackChunkName: "about" */ '../views/Index.vue')
  // },
  {
    path: '/lx',
    name: 'lx',
      component: () => import(/* webpackChunkName: "about" */ '../views/Lx.vue')
  },
  {
    path: '/my',
    name: 'my',
      component: () => import(/* webpackChunkName: "about" */ '../views/My.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
